package cn.hrc.interceptor;


import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

public class WebMvcConfig implements WebMvcConfigurer {
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new MyLjq())
                .addPathPatterns("/**")
                .excludePathPatterns("/home/**");
    }
}
